package com.fanghaoran.entity;

/**
 * @Author: win11
 * @Date: 2023/03/18/20:45
 * @Description: 单词类
 */
public class Words {
    private int id;
    private String word;
    private String translation;

    public Words() {
    }

    public Words(int id, String word, String translation) {
        this.id = id;
        this.word = word;
        this.translation = translation;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id 单词id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return word
     */
    public String getWord() {
        return word;
    }

    /**
     * 设置
     * @param word 单词
     */
    public void setWord(String word) {
        this.word = word;
    }

    /**
     * 获取
     * @return translation
     */
    public String getTranslation() {
        return translation;
    }

    /**
     * 设置
     * @param translation 释义
     */
    public void setTranslation(String translation) {
        this.translation = translation;
    }

    @Override
    public String toString() {
        return "Words{id = " + id + ", word = " + word + ", translation = " + translation + "}";
    }
}
